package com.caowei.weicimpress.weicimpress.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

/**
 * Created by caoweiPc on 2014/7/22.
 */
public class ActionbarDropdownListView extends ListView{
    private DropdownListWidget.OnListViewFinishChildren finishChildrenListener;

    public ActionbarDropdownListView (Context context) {
        super(context);
    }

    public ActionbarDropdownListView (final Context context,AttributeSet set) {
        super(context,set);
    }

    @Override
    protected void layoutChildren() {
        super.layoutChildren();
        if(finishChildrenListener!=null){
            finishChildrenListener.onFinish();
        }
    }

    public void setFinishChildrenListener(DropdownListWidget.OnListViewFinishChildren finishChildrenListener) {
        this.finishChildrenListener = finishChildrenListener;
    }
}
